import type { Menus } from '@/types/menu'

export const menuData: Menus[] = [
  {
    id: 'root',
    title: '系统首页',
    index: '/dashboard',
    icon: 'Odometer'
  },
  {
    id: 'system',
    title: '系统管理',
    index: 'system',
    icon: 'HomeFilled',
    children: [
      {
        id: 'system-distributed-device',
        pid: 'system',
        index: 'distributed-device',
        title: '分布式设备',
        icon: 'Platform',
        children: [
          {
            id: 'system-distributed-device-setting',
            pid: 'distributed-device',
            index: '/system/distributed-device/setting',
            title: '设备配置'
          },
          {
            id: 'system-distributed-device-read',
            pid: 'distributed-device',
            index: '/system/distributed-device/read',
            title: '读取数据'
          },
          {
            id: 'system-distributed-device-write',
            pid: 'distributed-device',
            index: '/system/distributed-device/write',
            title: '写入数据'
          }
        ]
      },
      {
        id: 'system-device-maintenance',
        pid: 'system',
        index: 'device-maintenance',
        title: '设备保养',
        icon: 'DeviceManagement',
        children: [
          {
            id: 'system-device-maintenance-project',
            pid: 'device-maintenance',
            index: '/system/device-maintenance/project',
            title: '项目配置'
          },
          {
            id: 'system-device-maintenance-part',
            pid: 'device-maintenance',
            index: '/system/device-maintenance/part',
            title: '部件配置'
          },
          {
            id: 'system-device-maintenance-polling-task',
            pid: 'device-maintenance',
            index: '/system/device-maintenance/polling-task',
            title: '轮询任务'
          },
          {
            id: 'system-device-maintenance-come-group',
            pid: 'device-maintenance',
            index: '/system/device-maintenance/come-group',
            title: '项目群组'
          }
        ]
      }
    ]
  },
  {
    id: 'device-maintenance-project',
    title: '设备保养',
    index: 'device-maintenance-project',
    icon: 'DeviceMantenance',
    children: [
      {
        id: 'device-maintenance-project-part',
        pid: 'device-maintenance-project',
        index: '/device-maintenance/part',
        title: '部件信息'
      }
      // {
      //   id: 'device-maintenance-project-pulping',
      //   pid: 'device-maintenance-project',
      //   index: '/device-maintenance/pulping',
      //   title: '制浆机'
      // },
      // {
      //   id: 'device-maintenance-project-pulping-progress',
      //   pid: 'device-maintenance-project',
      //   index: '/device-maintenance/pulping-progress',
      //   title: '制浆保养进度'
      // },
      // {
      //   id: 'device-maintenance-project-mixing-progress',
      //   pid: 'device-maintenance-project',
      //   index: '/device-maintenance/mixing-progress',
      //   title: '搅拌保养进度'
      // }
    ]
  },
  {
    id: 'easy-damage-parts',
    title: '易损件',
    index: 'easy-damage-parts',
    icon: 'Setting',
    children: [
      {
        id: 'easy-damage-parts-pulping-machine',
        pid: 'easy-damage-parts',
        index: 'pulping-machine',
        title: '制浆机部件',
        children: [
          {
            id: 'easy-damage-parts-pulping-machine-belt',
            pid: 'distributed-device',
            index: '/easy-damage-parts/pulping-machine/belt',
            title: '传动带'
          },
          {
            id: 'easy-damage-parts-pulping-machine-mixing-tank',
            pid: 'distributed-device',
            index: '/easy-damage-parts/pulping-machine/mixing-tank',
            title: '罐体'
          }
        ]
      },
      {
        id: 'easy-damage-parts-pulping',
        pid: 'easy-damage-parts',
        index: '/easy-damage-parts/pulping-machine/home',
        title: '制浆机'
      }
    ]
  }
]
